package com.lich;

import java.util.ResourceBundle;

public class Constants {
    public static final ResourceBundle rb = ResourceBundle.getBundle("config");
    public static final String DRIVER_CLASS = rb.getString("driver_class");
    public static final String DATABASE_URL = rb.getString("database_url");
    public static final String DATABASE_USER = rb.getString("database_user");
    public static final String DATABASE_PASSWORD = rb.getString("database_password");
    /**
     * 数据库类型
     */
    public static final String DB_TYPE = rb.getString("db_type");
    /**
     * 表所属的数据库名
     */
    public static final String TABLE_SCHEMA = rb.getString("table_schema");
    /**
     * 需要生成实体类的表名
     */
    public static final String TABLE_NAME = rb.getString("table_name");
    /**
     * 表名前缀
     */
    public static final String TABLE_PREFIX = rb.getString("table_prefix");
    /**
     * 表名后缀
     */
    public static final String TABLE_SUFFIX = rb.getString("table_suffix");
    /**
     * 字段名前缀
     */
    public static final String FIELD_PREFIX = rb.getString("field_prefix");

    public static final String TYPE_CONVERTER_CONFIG = rb.getString("type_converter");
    public static final String TEMPLATE_NAME = rb.getString("template_name");
}
